<style>
  html>body thead.datagrid th{
    width: 10px;
  }
  html>body thead.datagrid th+th{
    width: 150px;
  }
  html>body thead.datagrid th+th+th{
    width: 150px;
  }
</style>
<div id="divCountersForm">
  <?php include_partial('form_entry',array('listCountersForm'=>$listCountersForm,))?>
</div>
<br/>
<table class="datagrid">
  <thead class="datagrid">
    <tr>
      <th>
        Code
      </th>
      <th>
        Name
      </th>
      <th>
        Location
      </th>
    </tr>
  </thead>
  <tbody class="datagrid" style="height:200px">
    <?php foreach($listCounterss as $listCounters):?>
      <tr>
        <td>
          <?php 
            echo 
              ($listCounters->getCode() == '0')?
                $listCounters->getCode():
                link_to(
                  $listCounters->getCode(),
                  'counters/edit?iden='.$listCounters->getIden()
                );
          ?>
        </th>
        <td>
          <?php echo $listCounters->getName()?>
        </td>
        <td>
          <?php echo $listCounters->getLocation()?>
        </td>
      </tr>
    <?php endforeach;?>
  </tbody>
</table>